package com.lrf.lawyermanager.dongao.mapper;

import com.lrf.lawyermanager.dongao.entity.Lawyer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 律师档案操作：创建、查询、修改、删除
 * @author lrf
 * @version 1.0
 * @classname ILawyerMapper
 * @date 2023/1/2 10:31
 */
@Mapper
public interface ILawyerMapper {

    /**
     * 根据律师编号删除律师信息
     * @param Lawyerid 律师编号
     * @return 删除成功返回1，否则返回0
     */
    public int deleteLawyer(int Lawyerid);

    /**
     * 查询所有律师
     * @return 律师集合
     */
    public List<Lawyer> selectLawyer();

    /**
     * 添加律师（创建律师档案）
     * @param lawyer 包含律师信息的对象
     * @return 创建成功返回1，否则返回0
     */
    public int insertLawyer(Lawyer lawyer);
}
